from django.urls import path
from rest_framework.routers import SimpleRouter
from .views import CourseView, CourseCategoryView, CourseChapterView,CourseSearchView

router = SimpleRouter()
router.register('course', CourseView, 'course')
router.register('category', CourseCategoryView, 'category')
router.register('chapter', CourseChapterView, 'chapter')
router.register('search', CourseSearchView, 'search')

urlpatterns = [
]
urlpatterns += router.urls
